package pl.edu.pk.mech.kkbus.dto;

import java.util.Date;
import java.util.Set;

import pl.edu.pk.mech.kkbus.entities.User;

public class AuthenticatedUser {

    private long id;
    private String name;
    private String surname;
    private Date birthday;
    private String email;
    private String phone;
    private int points;
    private Set<User.Role> roles;

    public AuthenticatedUser(long id, String name, String surname, Date birthday, String email, String phone, int points, Set<User.Role> roles) {
        this.id = id;
        this.name = name;
        this.surname = surname;
        this.birthday = birthday;
        this.email = email;
        this.phone = phone;
        this.points = points;
        this.roles = roles;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSurname() {
        return surname;
    }

    public void setSurname(String surname) {
        this.surname = surname;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public int getPoints() {
        return points;
    }

    public void setPoints(int points) {
        this.points = points;
    }

    public Set<User.Role> getRoles() {
        return roles;
    }

    public void setRoles(Set<User.Role> roles) {
        this.roles = roles;
    }
    
}
